package com.gitee.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName(value = "t_order")
public class Order {

    @TableId(type = IdType.AUTO)
    private Integer id;

    private Integer userId;

    private Integer cookbookId;

    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date eatTime;

    private Integer cookbookType;

    private Integer orderStatus;

    private Integer orderType;

    private BigDecimal totalPrice;

    private String remark;

    private Date createTime;

    private Date updateTime;
}
